package com.example.boot.annotation;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/user")
    public User getUser() {
        User user = new User();
        user.setName("张三");
        user.setPhone("13812345678");
        user.setIdCard("420123199001011234");
        user.setEmail("zhangsan@example.com");
        return user;
    }
}